package com.kaili.common.util;

import org.springframework.security.web.authentication.WebAuthenticationDetails;

import javax.servlet.http.HttpServletRequest;
import java.io.Serializable;

/**
 * Created by rzh on 18-5-4.
 */
public class Calendar extends WebAuthenticationDetails implements Serializable {
    private static final long serialVersionUID = -9175136116715031700L;
    private final String type;
    private final String code;

    public String getType() {
        return type;
    }

    public String getCode() {
        return code;
    }

    public Calendar(HttpServletRequest request) {
        super(request);
        this.type = request.getParameter("type");
        this.code = request.getParameter("code");
    }
}
